package com.lyn.common.model;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "ResultList",description = "返回数据列表结果")
public class ResultList<T> {

	@ApiModelProperty(value = "当前页码",required=false)
	private int pageNum;
	@ApiModelProperty(value = "每页行数",required=false)
	private int pageSize;
	@ApiModelProperty(value = "总页数",required=false)
	private int totalRows;
	@ApiModelProperty(value = "数据列表详情",required=true)
	private List<T> items;
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalRows() {
		return totalRows;
	}
	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}
	public List<T> getItems() {
		return items;
	}
	public void setItems(List<T> items) {
		this.items = items;
	}
}
